This error is usually related to resources. So please:
1. Make sure you give Kali enough memory and CPUs.
2. Make sure that you can actually give Kali that much memory and CPU without affecting the host machine, so if you gave it too much then consider reducing it.
3. Experiment with enabling/disabling 3D acceleration.