Ok so if it cannot be resolved via diagnostics, you'll need to book a repair via Samsung.
It can be sent away (they do factory data reset devices as part of that) or if you push, they'll come to your home and fix it onsite.
Warranty is 2 years usually in the UK
I am not employed by Samsung nor do I receive any remuneration as a Samsung Members Star.
My device is an S25 Ultra.