CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.
Trying to update EquipmentId in OpportunityProducts Entity and getting the error.
How to get the Navigation properties?
when dealing with lookups (like the trainer one in your code) the syntax is different, try to use my tool Dataverse REST Builder to generate the right syntax github.com/GuidoPreite/DRB
this tool helped me to get the solution