It
astounds me that this is still a problem in 2023.
I company I coded for surveyed the entire Fiji region in 1997, drafting aircraft at 80m ground clearance in long lines across both sides of the 180 longitude line.
Every single bit of commercial US GIS software available at the time was garbage and failed to correctly compute line lengths that straddled the 180 longitude line, areas of rectangles that did the same, correctly polygon mask etc.
Fortuneately we had in house software (that had the same flaws, considering it originated from Sunnydale, California) and source code so this became Yet Another Patch I had to write in on the fly in the midst of everything else to move forward.
I wrote issue tickets on this to ArcView | ESRI (of the day), the open GIS groups of the day, and raised it with anybody on relevant IRC boards | early reddit who was talking about their aircraft control software, etc.
I haven't thought about that for 14 odd years now .. but I really thought the base libraries in Google Maps would correctly handle geodesic geometry by now.