Seems like the network you are using doesn't support PUSH0 opcode, which was introduced in solidity 0.8.20 and some chains still might not support it. That's why other chains can't find the PUSH0(0x5f) opcode and throw this error.
Consider using 0.8.19 for other chains. OR you can compile with an older version of compiler
This should solve your problem.
If you want to learn more about PUSH0 opcode you can check this small article which explains it pretty well.