Would have definitely tried it, but today it completely died. Won’t even turn on. Replacing the motherboard would be very expensive for a phone this old if the parts are even available. Will do a teardown tonight as last rites just to have a look at the insides, reassemble and then give it to an e-waste processing foundation.
Seems too risky to keep it plugged then ig as other person in the comments seems to have had a similar issue. Maybe will just use it as an extremely dumb secondary phone.
Edit: This is the stage where LineageOS logo appears.

I have an 8 years old OnePlus 5 running Lineage OS 22.2 as a secondary phone alongside my iPhone. Yesterday the phone froze, turned off and refused to go past the Lineage loading screen — where it froze and some weird colourful squares in a single line appeared before turning off. I tried factory resetting it as well from recovery but no success. Today morning I turned it on again and it booted w/o any issues. I think the UFS might have started to show its age — which was used heavily with heavy games, RAW photos, Lightroom processing, continuously running KDEConnect, Syncthing, multiple factory resets and multiple custom ROM installs.
So I was thinking to dedicate it to do something else like an Immich slideshow display, a clock, a controller or something like that. Is there any lighter than LineageOS custom ROM which can allow me to do something like that?
Would have definitely tried it, but today it completely died. Won’t even turn on. Replacing the motherboard would be very expensive for a phone this old if the parts are even available. Will do a teardown tonight as last rites just to have a look at the insides, reassemble and then give it to an e-waste processing foundation.