C Section Due to your health?

Has anyone had to have a C Section due to there own health? I found out I have a tumour in my head at 31 weeks pregnant and have just been told today I will need a c section to limit any pressure to this. I haven't even had a certain diagnosis... I feel like it's all going fast I've had to move hospitals and feel like so many decisions have been taken out of my hands.... Prayers and advice or someone been through similar welcome ❤