You could phrase it in different ways, depending on how it best fits the context -
‘It sent such terror that Peter couldn’t sleep’
‘It sent just enough terror to prevent Peter from sleeping’
‘The terror it transmitted prevented Peter from sleeping’
‘It sent such a terror through Peter that he couldn’t fall asleep’
Options are endless! Depends how it fits in with what else you want to say, and how that is phrased.