Its got to be better than “sleep sexting”. That could turn into a liability issue.
No sexting, but I did send “I love you” once! I took care of that problem fast.
I note that My parents used to also question me in my sleep as a kid, when they wanted to be sure I’d tell the truth about anything, as I was semi sleep talking (not consciously aware of the conversation) and would not remember it in the morning, either.