Exported game with self compliled templates has OpenGL error

Godot Version

4.5.1

Question

I have exported my game using the provided Godot export templates and it runs without issue.

But, I have compiled export templates to export my game as I want to include encryption and this version presents the error below when attempting to run the game.

I have seen the workaround cmd line but I want to fix my game for others so they wont get this issue on my exported templates. Is there a way to have it run just like when using the Godot built export templates?