mavsdk.mission.MissionError: PROTOCOL_ERROR

Hi when I’m trying to upload a mission plan using mavsdk, I frequently get below error.
I’m doing this on PX4 HITL jmavsim.
flight controller is connected to Qground and mavsdk through using mavlink-router at the same time and sometimes missions are defined using Qground and sometimes using Mavsdk
I would be so thankful if somebody helps

raise MissionError(result, “upload_mission()”, mission_plan)
mavsdk.mission.MissionError: PROTOCOL_ERROR: ‘Protocol Error’; origin: upload_mission(); params: (<mavsdk.mission.MissionPlan object at 0x73059cec9fd0>,)