H5p content not showing and code is written at bottom of page

Hi,

About 2 days ago all my H5P content stopped working on my Wordpress website. It was around the same time that there was an update to my theme Astra. I'm on the latest Wordpress 5.8 but I updated that a few weeks back and there wasn't a problem. The problem is there in Chrome and Microsoft Edge, Mobile and Desktop. I'm on H5P: 1.15.3. 

I've attached Google console errors and the Code that shows up at the bottom of one of the pages with H5P content. Code like this shows up on any page that has H5P content:

My hosting company told me there are no PHP errors. 

I absolutely love using H5P so would love to get this resolved. If anyone has any idea of the problem I'd really appreciate it.

Cheers,

Jason