I ran into this exact problem trying to embed Charm EHR appointment code in Squarespace.
I was only able to solve by upgrading Squarespace from the "Personal" plan to the "Business" plan.
The second issue I had was I was trying to add via the "Embed" block but using the "Code" block seemed to be the way to get it working.