My guess is that there is a mismatch between the GNSS drivers and hardware - the "invalid parameter" likely means that the higher level software is trying to pass data to the lower level software that it doesn't understand. This is a common issue with ROMs where often drivers are ported from one device to another, without an official release from an OEM for that particular hardware. Android 7 and higher got significantly more complex in the area of GNSS interfaces with the hardware with the addition of raw measurements, etc.
So you might try reverting to an older LineageOS version if it previously worked. Otherwise, aside from an update to LineageOS, I'm not sure there is much you can do.
Sean