> Who knows how long it will keep working like that? Hopefully I will be able to put lineageOS or postmarketOS on it when the software eventually stops working.
You'll be fine, if I break my current phone, my next one will be a Galaxy S4 as well, some people do run Android 12 on it nowadays, the battery is replaceable and the phone is so cheap used that it's not even worth worrying about.