Help !!!

My son is 1 . I’m 33 weeks pregnant . And I feel like I’m failing at this mom thing literally. My son has been constantly whining and fussy for the past week or so . And since I’ve been on ‘bed rest’ at 27 weeks , his sleep pattern is completely off . Am I doing something wrong ? 😔