If you look at the real history of the ICC, it’s effectively toothless over any nation that can safeguard its own sovereignty, and otherwise a fig leaf for the supposed lawfulness of foreign intervention into nations that cannot.
Pinochet was arrested after he was no longer president. He expected Chilean amnesty laws meant he was untouchable for his crimes. He was wrong.
If I commit an international war crime and get the US President to issue a pardon, then I'm free from legal problems in the US, but why should I expect to be able to visit The Netherlands without being arrested?
State visits are a different topic, with promises of safe passage/diplomatic immunity arranged before hand.
Castro visited the US several times during his presidency, for example, and Hungary recently promised to ignore the ICC arrest warrant on Netanyahu before his visit.
If guarantees cannot be made, the visit doesn't occur. It's as simple as that.
Why should becoming the president of France give Macron the right to sell old GREs online to people in the US, without fear of lawsuit and being tried in abstentia?
If such an exception exists, then Macron could make good money selling illegal drugs online to US citizens.
So let me put it to you this way, if the Chilean President had the power of the POTUS backed up by a military equivalent to or superior to the US Military, would the UK have arrested and extradited him on behalf of Spain?
So the solution for American Presidents is even simpler than the one you propose: disregard the ICC in its entirety and continue to make state visits with impunity.