After writing a certain number of characters in a text box, Photoshop will start printing one word per line instead of continuing to write text like normal. This consistently happens after ~32767 characters have been printed; likely this is related to the usage of 16-bit signed integers in Photoshop. Added screenshot below with example
Steps to reproduce:
1) Create new document
2) Add text box to document
3) Paste >32767 characters worth of text in text box
Adobe Photoshop Version: 24.0.1 20221111.r.112 a12a934 x64
Operating System: Windows 10 64-bit
Version: 10 10.0.19044.2251