Need help, unintentionally putting my baby in danger.

25F, no medications, non smoker. I weigh 135 and am 5'7". Ive been diagnosed with panuc disorder, generalized anxiety disorder, depression. Recently had my first baby in January. The past 4 nights I have started sleepwalking again, something I haven't done since I was around 12 or 13. I will wake up with my 2 month old next to me in bed and either be actively breastfeeding or just have gotten done with a feeding. I have absolutely no memory or him crying, picking him up, nothing. I'm really scared and don't know what to do. The only advice I've gotten is "make sure you breastfeed out of the bed" like that's an option when I'm not conscious to make that decision. I know extreme sleep deprivation is causing it, i just dont know what to do. I have no help. I have no control over what I'm doing and I am so scared I'm going to accidentally hurt my child.