I had this exact problem on a 2017 in Sweden. I first did the eMMC recall but it did not help.
It's the rear camera. You can confrim this by unpluging the camera and the restarting will then stop. Mobile service fixed mine. Cost about 800 bucks. The old camera was completely oxidized. My car...