Dog wont come near me

This is so weird, I posted literally like 20 minutes ago about possibly losing my mucus plus and bad back pains close together... Now my dog is shaking like crazy, panting and won't come near me or take food from me he even barked once which he's never done... But whenever the pain comes and I'm standing he stands right underneath me in the front or scoots close to my side if I'm sitting.

Did anyone else who has a dog pet start acting funny when they went into labor?

Update: well he's now hiding in the bathtub and wants nothing to do with me... All well I'll leave him be I don't want to stress him out