If you have no choice but to sleep on your stomach, there is nothing wrong with doing so, so long as you are keen to follow the Sunnah and the only reason you cannot put this particular aspect of it into practice is your illness.
And Allah knows best.