I have a Samsung galaxy J6 plus l. When my phone auto restarts by device care it doesnt open the camera. As I click the camera icon black screen and the main home screen is back. Afterwards restarting the phone again by myself the camera starts to work any resaon behind this.
You can do it from samsung members app itself. It's better to report the issue when the camera is not working, because the app will collect error logs from the device when reporting bug. Follow the screenshot for reporting