This particular error is caused by the gas being over the max limit for a transaction. You can see a related post here: How do I check the max gas allowed for a transaction?
However I’m getting a different gas-related error if I reduce the amount to less than the max limit, so unfortunately I don’t have a solution for you yet. Still working on this though!