I have a powerapp which I want to update a Detail Screen UI but in PowerApps Studio I found that the screen freezes when entering. It was working fine in the past and I have made no updates to the DataSource and the App. Doing some testing I found the problem is a Data Table that I populate with a sharepoint attachments from a gallery. The published App works perfectly in any web browser and in Microsoft Teams it just fails when accessing the detail screen from powerapps studio in preview mode. I have made a copy to another environment and deleting and adding the datasource again, deleting and creating againg the controls but the issue continues only in powerapps studio. It only works when I delete the data table with the attachments links from the gallery.
The formula of the items property of the gallery (GallerySoportesCompra_7) is this