Baby hyperventilating in sleep

When we were in the hospital I did notice that my boy would start to breathe really fast at times so I asked the nurses about it & they said it was normal. Ever since we’ve been home I’ve noticed that he will start hyperventilating. It’s like he’s about to cry or if he was having a nightmare. It goes on for a few second, a minute max. Sometimes I can get him to stop by caressing him other times I have to just wait it out. It’s the scariest thing ever. I seen something on google about it being normal. Does anyone else’s baby do this? I’m gonna be asking his PED on Thursday.