What sounds like a scream could also be an episode of "exploding head syndrome" (the most hilariously dramatically named relatively mundane sleep phenomenon)
I've experienced it a handful of times in my life and it is very startling! Especially the 2 times where it sounded like someone shouting my name from inside my skull. Brains are so weird
Huh! I stand corrected
https://pe.usps.com/text/pub52/pub52apxc_023.htm