H5P Interactive Videos – Fatal error: Out of memory

I facing a strange issue with the H5P interactive videos, we have around 150 videos on our site. Whenever someone watches those videos, after 1 or 2 videos WordPress stops working and it gives an error Fatal error: Out of memory (allocated 27262976) (tried to allocate 32768 bytes) even after having sufficient resources. To resolve this we have to restart the XAMPP services.

Here is more info about the server and the status of the server during this white screen of death.
System : Windows Server 2012 R2 Standard Edition (VM instance)
Memory used by PHP : 2 MiB
Memory usage (system): 3.19 GiB / 8 GiB (39.846705108812%)
CPU Load : 1%

PS:
It is a WordPress network setup which is running only one WordPress site, I have already increased the WordPress PHP memory limits.
define( ‘WP_MEMORY_LIMIT’, ‘3144M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘3144M’ );

Please guide me to right direction, what is causing the error and how to fix it?

icc's picture

Very strange. Are you sure the videos files are not being sent through PHP?
Sounds like it could be some sort of PHP cache issue as well. You could try a different version/build of PHP to see if that helps.