From what I have read from your complaints I think you are having blunt trauma to the chest most likely which went unnoticed
Your rib has intercostal nerve supply which is getting pinched while you are getting up from bed
And as your muscles are in spasm you are also facing abdominal pain
Next Steps
I would request you to get a chest xray done and review with me in my clinic sanghvi hospital and I assure your pain will resolve
Health Tips
please avoid heavy activities and get prescription pain killers to alleviate your pain