Hi, thanks for reaching out, and we're sorry about the trouble!
Could you share the version of Photoshop you're using along with the version of Windows you're working on?
You can start by trying to reset the text tool to check if that makes a difference. You can check out the steps here: https://adobe.ly/43Daw7q
Let us know how it goes!
Thanks,
Nikunj