try to modify or add block: If Testing Block
then limit the lot size to fixed size, and test if the error will be eliminated and uploaded on the market.
just to trace the error really exist on your code, I do this sometimes when I uploaded my robot on mql5 market.
X