This is hardly an unsolvable problem. But it IS expensive. The Netherlands has 17 million people and almost all of them live in a floodplane or literally under sea level.
You fix this by pouring billions of dollars into flood control. Build dykes, retention areas, meandering rivers and normalized deltas. It’s expensive and a lot of work, and people will need to move, or drown. It’s as simple as that.