I had already posted a reply saying that the terminal fix solved my problem. But now I see it has not. It is different now, my computer still shuts down and restarts every night (since Catalina upgrade), but now it's a different error message. Any ideas?
panic(cpu 2 caller 0xffffff7f94cefad5): userspace watchdog timeout: no successful checkins from com.apple.WindowServer in 120 seconds
service: com.apple.logd, total successful checkins since wake (8280 seconds ago): 829, last successful checkin: 0 seconds ago
service: com.apple.WindowServer, total successful checkins since wake (8280 seconds ago): 817, last successful checkin: 120 seconds ago