Other than that error message, what makes you think the transaction is non-standard?
That error message, although is emitted by standardness checks, does not necessarily mean that the transaction is non-standard. It is often also seen when the transaction is signed incorrectly.