So, in short, you have breached a restraining order?
Is this the first breach?
How many times have you contacted him with no response?
Are any of them abusive?
The problem here is the volume of them.
They will almost certainly prosecute you.
Depending on your antecedence though I would expect a community order of some form.
It does get over the custodial hurdle but that wouldn't happen on a first offfence.
Can I clarify anything for you?
Well, that is more threatening then.
That might mean that a custodial sentence is consiered.
If there have been hundreds of messages then that is a risk.
It would only be very short.
There is case law that confirms that an encouraged breach is a breach nonetheless.
It is quite unlikely that mental health issues alone would lead to segregation.