If it’s on your host PC, do you have an Nvidia GPU?
If it is your host pc, and you do have an Nvidia GPU, then you can probably resolve this by installing nvidia gpu drivers.
Go to the “Software & Updates” app, click the “Additional drivers” tab, and choose a proprietary Nvidia driver.
Then follow the instructions to configure secure boot. You must choose and write down a password, reboot, and enter some characters when your bios prompts you to insert a key.
I recommend not following any instructions on the internet telling you to disable secure boot. This is not required anymore (technically, it never was).
The preview window in Cheese might not support hardware acceleration features of the nano. Only gstreamer apps have hardware acceleration and only when specifically written to use Nvidia’s components (which means none of the Canonical built apps, from chromium to cheese to kodi to … anything).
You can try gst-launch instead with an example like this.