Glad to hear that, always be careful when something like that happens stop using the device and power it off .Fortunately, I remembered that I had purchased Samsung Care+ when I bought my S23 last year, and I was able to have it repaired under warranty at my local UbreakiFix Store. Turns out the battery was defective and swelling up which caused the back cover to pop off. The repair shop put in a new battery and glued the back cover on in about 1 hour.
Agree, battery issues are no joke with these things...Glad to hear that, always be careful when something like that happens stop using the device and power it off .