One thing I find that often fixes the error is right clicking on the Application file, selecting Properties then clicking on the Compatability tab.
Tick the box that says: Run this program in compatability mode for: [whatever Windows OS it gives you], assuming you're running the game on Windows, then press ok/apply.
This RMN thread has some solutions for the error as well: https://rpgmaker.net/forums/topics/10204/