If you don't want to or can't leave you will need to learn to detach. And find a good hiding place for the pills.
My AH takes anything not nailed down and even then he would make an effort. Since a safe hasn't worked you will have to be creative. All my valuables and medication are in a zip locked bag, stashed in the basement ceiling. Pain in the neck and pathetic to have to resort to that every day, but I don't want my checks, credit card and bank cards and my and my son's meds walking out the door.
Keep posting. You are not alone.