Seems to be a function of LibGPS
local measurement = GPS:GetCurrentMapMeasurements()
Have you installed the version LibGPS 3 from esoui properly? v3.1
Check your live/AddOns/LibGPS folder. Maybe delete it and re-download fresh the newest version!
https://www.esoui.com/downloads/info601-LibGPS.html
And check ALL other addon's subfolders for /libs/ and remove the libs in there which got no own txt file included there in the same lib folder, especially any LibGPS!
What zone and map (in a city or at overland?) are you in as the error happens?