No. You have an overly pessimistic view of holding a job, an overly optimistic view of real estate investment, and you don't even mention other alternatives.
Sure, you could get laid off from your job. That's stressful, but it's hardly the end of your life. Get another job. If you have marketable skills, this can be quite easy. I was fired once, and I got another job in about 2 months. I've never been laid off but I did once quit a job because the company was going bankrupt and it was obvious that a layoff was coming. I've gone through, let's see, 10 jobs in my life. I started my current job when I was 53, so it's hardly impossible to find a job after 45.
Some people make a bundle out of real estate. Others lose a bundle. I used to own a rental property as a sideline to my day job. I lost money on it every year until I finally bailed out and sold the property. I lost money every. single. year. It is not the magic money maker that some people seem to think. I've seen lots of discussion on this forum and elsewhere where someone calculates how much he'll make on a rental property that are wildly optimistic because they make very questionable assumptions. They assume that they will always have a tenant -- that they'll never, ever have a time when someone moves out and they don't have a new tenant moving in the next day. In real life, it can take months to get a new tenant. They assume the tenant will always pay the rent. In real life, it's not at all uncommon to get tenants who don't pay, and then you have to go through the eviction process. They make very low estimates of maintenance costs. If you are a skilled carpenter, electrician, and plumber and you can do all the maintenance yourself, and your time is worth nothing, maybe some of these estimates are plausible. But if you have to pay professionals, well, I think I'd get sick to my stomach looking at what I had to spend on maintenance. Etc.
What about other money making opportunities? There are many kinds of business that you could start besides a rental business. What about starting a laundromat, a law firm, a dog-walking service, a aircraft factory, etc, for thousands of other possibilities?
On your philosophical comment, "So the meaning of life is being a landlord (and dealing with tenants)? It seems like it will make life lose all its meanings." Even if it was true that being a landlord is the secret to financial success, you seem to be confusing "best way to make money" with "the meaning of life". The meaning of life is to get right with God, live for his glory, and enjoy his blessings. Yes, you have to make money to survive, and it's good if you can enjoy your work and get some satisfaction from it. But that's not the meaning of life. You need shoes to walk around, but that doesn't mean that the only reason you walk around is to get new shoes. Okay, I'm sure others on here will disagree with me about the meaning of life, but I suspect that few will say that it is make money.