Ancient Minerals has a bath flake product. If you think the dose is too high, I would use that. But strangely, I've only ever heard of the magnesium HELPING heart palpitations.
Has this happened multiple times? Did you ensure that the use of the oil didn't coincide with something else that might have caused the issue?