Oh Luckygirl - how awful for you . I know the original problem has been sorted and I’m glad about that. But I can’t imagine not being able to lie down and not being able to sit down for more than 20 minutes.
One night, about 3 years , I was in a similar position. Flank pain , which only eased when I walked, so that was what I did …walked up and down the upstairs landing. I’m on my own as well and didn’t want to ring anyone. I waited till the morning, rang my son; he took into hospital…they suspected kidney stones, but scan showed it wasn’t. The pain finally disappeared…..till today, I don’t know what caused that agonising pain. The only answer is that the stones were probably very very grainy and I might pasted it, unknowingly.
I hope you will soon be able to get back to some form of normality and above all, get some sleep 