Quail are different from chickens, they don’t seem to suffer the health issues chickens do as they age. However, generally speaking males do tend to live longer due to the toll laying takes, but if you factor in the higher likelihood of them randomly deciding to fight to the death, you probably get a similar average lifespan. I do keep a male jail year round, and I do my best to keep them dark and away from hens, but sometimes they do have a fight and someone ends up recovering inside in a hospital cage, and someone ends up in the freezer. A lone male will probably live the longest, but would be extremely unhappy without friends. Someone on here had a very old boy, maybe 5-6 and he lived with a pigeon as his mate, but many won’t accept a different species.
I believe in general that new world quail, bobwhites, gambels, etc, generally live longer than old world quail, I’ve heard people claim they’ve had new world males live as long as 8 years, but I have no first hand experience.
If you want to keep them indoors I would strongly recommend buttons due to their small size, and less dust, plus a happy pair or group don’t make many loud noises, just some happy chirps here and there.