Night terrors, a type of parasomnia has been the subject of considerable study.
According to "Insights from studying human sleep
disorders" (Mahowald and Schenck, 2005), parasomnias are in two categories:
The common parasomnias are another example of
‘dissociated sleep states’, representing the simultaneous admixture of
wakefulness and either NREM sleep (disorders of arousal such as
sleepwalking or sleep terrors) or wakefulness and REM sleep (REM
sleep behaviour disorder). Parasomnias may result in striking clinical
phenomena, which appear as the brain becomes reorganized across
states, and are therefore apt to occur during the transition from one
state to another.
Sleep terrors are an example of NREM sleep disorder and are usually the result of febrile illness, sleep deprivation, physical activity, emotional stress and medications - so the question about the bed can relate, particularly if the bed is causing lack of sleep.