Men who are sexually frustrated can get some strange ideas. Women they wouldn't normally look at twice under normal circumstances can appear really attractive when a guy's balls feel twice their normal size and he is "high" on mother nature's hormones as she drives the urge to breed...
A lovely couple I know divorced. She said "he won't talk to me and I am not having sex until he does"...
He said "I don't feel like talking when I am so tense and desperate for sex"...
Like those two it seems you and your man have reached a stalemate and unless someone gives way you might as well not be together!
While fondling a breast would mostly be considered ok during the circumstances you describe if it was a loving relationship it isn't so good as you feel so bitter and cheated at his behaviour and fiddling with your anus without express permission is definitely "not cricket"...
It really sounds like a requirement for seperate beds and preferably seperate rooms but if you want to stay with your husband life is likely to be more pleasant and the future rosier if you can make the relationship work - and that will mean dealing with sex. In fact allowing your husband to have sex is a central part of the contract of marriage even though it is rather dated now...
If a dog doesn't get fed at home it will eat somewhere else...
If you have to remain in the same bed it seems like you are going to get your anus fiddled with whether you like it or not - though I am not sure how this would cause diaorrhea. You could possibly hand him a pot of lube to use to save you a sore bum or you could have him arrested for assault...
Chances are if his sexual appetite was satisfied your bum would be safe while you slept and quite probably he would be a lot more polite and well-mannered to you...
Somebody needs to make a move and a compromise needs to be reached (compromise or appeasement is how to make a successful marriage and compromise is better and more desirable) - and that means discussion and an exchange of information and not just handing out recriminations!
If you really cannot bring yourself to indulge him sexually it is probably time you went to counselling or therapy of some kind as a couple but as he seems to see you and treat you as a sex object you could try behaving as one and see what happens - try offering a range of sexual services with a scale of charges - doesn't have to be money (but that might concentrate his mind more)...
You could masturbate him (before you take your pill) if he agrees to let you sleep in peace or insist he sorts himself...
He might still not stop: an acquaintance told me the best sex he has with his wife was while she was asleep. At first necessary because the kids tired her so much, but he became used to it and liked it...
You are full of criticism about your husband's behaviour but it usually takes two to make an argument and it might be helpful if you looked inwards to see if you can discover a cause for his bad behaviour and attitude within yourself: your attitudes or behaviour?
The best wives are those who don't strive to turn their men into better husbands! The reason for this is the man you married is almost certainly still going to be the same guy with the same boyish outlook and animal instincts who can be easily and simply satisfied and it will be you who has changed, grown up, matured and become weighed down with responsibility...
I wonder how much your insomnia and those pills are responsible for? Is it time for a drug review at the doc's. Is it time for a slight change of lifestyle (diet, exercise, interests and hobbies)?
I don't think i can usefully say more. I hope I have given you food for thought and possibly the basis for action...