By default, if you resize a text layer, its font size changes accordingly. Perhaps useful but annoying if the line is long.
Solution: Change “Auto” to “Fixed” below width/height.
PS: If you find this tip difficult to understand, check out this course I prepared for you, where concepts are explained in a more digestible way. No programming experience required!