Builder window does not close in Mautic 5.2.3

Your software
My Mautic version is: 5.2.3
My PHP version is: 8.3
My Database type and version is: MariaDB 10.6.21

Your problem
I am migrating from Mautic 4.4.13 to 5.2.3. My understanding is that email templates can only be transferred manually. I copy the Builder code of a given template in the old Mautic version to the new version. I use the Blank theme. After copying the code to the new version and clicking “Apply Changes”, the Builder window will not close. Therefore, I cannot get to the previous window to save the template. What could be the cause of this?

Hi, I’m a new mautic user, but I’ve experienced similar behavior, and for me it was a malformed JS in the template I was copying. It wasn’t from Mautic 4 to 5, it was a different source, but that was my issue.
Another user on this forum linked to their site for some templates, and I saw they have a validator, perhaps this can help find the issue?