Curiously, how exactly is Lineage OS not "fantastic in terms of security"?.
LOS merges upstream AOSP security commits and updates, often faster than most OEMs and isn't delayed by carrier testing (negative or positive, depending on your views). There are also more options for security- or pricacy-focused demands, up to the user to implement.
You could run Lineage OS to accomplish this, but aside from being a pain to install it's not fantastic in terms of security.