Aww mama, muscle soreness and sleep issues are pretty common sa pregnancy especially sa second trimester when your body's changing so fast, a few of us went through the same thing! The swelling feeling you're describing sounds like it could be muscle tension from hormonal changes or just your body adjusting, but definitely good na checkin mo with your OB dahil you want peace of mind, and they can give you better guidance on what's safe for sleep and pain relief during pregnancy. In the meantime, the massages from your partner sound like they're helping, so keep doing that, staying active during the day (like gentle walks) and trying to keep a cool, comfortable sleeping space also helped some of my mum friends. Hang in there, mama, fourth month is tough pero it gets better!