As mentioned in »»»»»»»»»» If you have a problem, PLEASE read this first «««««««««« you can run nvidia-bug-report.sh to generate a nvidia-bug-report.log.gz file.
Note that some of the instructions in that thread may be out of date, e.g. most people now probably use Wayland instead of X11.