I woke up this morning to find my betta all bloated ond floating on one side

wich was a shock because im shure i havent been over feeding him I heard somthing about feeding them peas so I was wondering are frozen peas ok(any other sugestions would be great, thnx)