The error code suggests that you don’t have the correct FLUKA package installed.
Please check your gfortran compiler version in a terminal with the command:
And install the appropriate FLUKA package. See: Installation how-to | The official CERN FLUKA website
P.S.: You may want to take a look at the WSL installation option (Installing FLUKA/Flair on Windows 10 using WSL | The official CERN FLUKA website), which is more convenient than running FLUKA in a Virtual Machine.