Here’s a useful, practical guide on — what’s real, what works, and how to approach it.
In TWRP:
Wipe Dalvik, System, Data, and Cache. Sideload the LineageOS 18.1 ZIP, followed by a compatible GApps package (OpenGApps Pico recommended).