Baby goes stiff??

My baby will squirm then randomly scream out & cry, then will stiffen up. Why?? He had puke coming out of his nose & some puke in his mouth that came up. He ate an hour prior. He’s a month old drinking Similac total comfort. Has been having wet & poopy diapers all day.