Every single button except X is working on controller?

I tried resetting the controller with the button on the back but didn't help, It's not my PS5 because I tried it on my laptop and every button except X was working still, Can I fix this (preferably without going inside) or do I just get a new controller?