It's a shame that the 8/X isn't getting a proper feature update, but you should still be fine in terms of security updates. Apple released 12.5.7 earlier this year which is compatible with the 5S — a phone that's now ten years old. Apple has consistently provided security updates for it each year since its release.