Apply solution from here: https://community.intel.com/t5/Intel-Quartus-Prime-Software/Run-Functional-Simulation-Error/td-p/222185