When adding user cuts (via a callback) to Gurobi, you should disable certain dual reductions during the presolving phase. This is to ensure that the cuts can be formulated with respect to the presolved space.
Please set the parameter PreCrush to 1 when working with user cuts to enforce this.
Otherwise, you might encounter errors, typically error code 20000.