Problem with python library in headless mode

By default display is enabled in HDMI port. Do you have modification to disable it?

And please check if you can launch the camera by following the steps:
Jetson Nano FAQ
Q: I have a USB camera. How can I launch it on Jetson Nano?