How to send a Return key in an already existing screen session on MacOS?
Without more details I don't know why it does not work for you but you can try other ways:
screen -S session -X -p 0 stuff "echo hello\r"
# OR
screen -S session -X -p 0 stuff $'echo world\r'