I would speak with your care co-ordinator or ward psychologist and ask them to explain why you're currently in hospital
Unfortunately, you will lose your community leave if you don't adhere to the conditions set out by your RC. Section 17 leave is a legal concept so has to be followed exactly.