How did you get COOP/COEP in Github pages? A quick search just now suggested it might be possible with a Service Worker[0], with the caveat that it may only work on _second_ load.
0 - https://dev.to/stefnotch/enabling-coop-coep-without-touching...
0 - https://dev.to/stefnotch/enabling-coop-coep-without-touching...