That's why it's better to start consulting as you get older. Much less discrimination. We have 65+ year old consultants/developers at our company.
If it would be easy - everyone would be doing consunlting coz it pays way better and work-life balance is also better.
Sure it’s nice to have the choice to not work between engagements but again you’ll be back to finding the next one