Hi,
We're sorry about the trouble with Photoshop while trying to add text. Would you mind sharing the version of Photoshop you're using along with your computers operating system?
You can try the steps suggested here: https://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop.html
If the issue persists, you can try to reset the preferences of Photoshop using the steps mentioned here: https://adobe.ly/2Qzc0K3
Please backup your settings prior to resetting the preferences. You can check: https://adobe.ly/2vNz6FG
Let us know how it goes!
Regards,
Nikunj