It's double the calcium to mag. Try it this way and see if your symptoms subside. Also, in the above article you will see foods that are rich in magnesium.
I am not familiar with your gut issues, but could you have some type of inflammation going on in your system? Have you tried digestive enzymnes containing serrapeptase? Below is an article that you may find helpful.