The shipped VM contains older Gazebo version and RAM is limited to 2GB.
Can you please try following two things,
1] Upgrade Gazebo version to latest ( mostly 9.16 )
sudo apt-get install gazebo=9.16
2] Change RAM to 4GB from VM settings.
Please let me know, if you still face same issue.