Since this will be in more than 50 years, many events can happen to make Bitcoin secure even though there are no block rewards to incencitive miners.
Bitcoin could become widespread enough for mining to be sustainable with transaction feess, or perhaps in 40 years it will switch to PoS v.24 or something like this

There are many other CryptoCurrencies that will finish coin generation soon.... How will they be able to work then if they are that vulnerable ?
Some have died, some will die, and some are struggling. If the dev of a particular altcoin knows enough about programming and economic principles to find a method that will keep his/her coin's blockchain as secure as possible, then it will survive. If it does, then that solution will eventually propagate to other coins, and possibly Bitcoin.
The whole cryptocurrency scene is a huge technological, economic and social experiment. Anything important that we learn from Bitcoin and all the other altcoins are used to further evolve the Bitcoin protocol and all cryptocurrencies in general.