The best way to not to lose your money while keeping it in an online wallet is to deposit your money in cryptowallets. Cryptocurrencies are decentralized, so no one can techniacally take away your funds. The biggest problem is that cryptocurrencies are so volatile that the value depreciates and increases in a matter of minutes. This is why I keep my money in online payment processors. But I have always questioned the reliability of such payment processors after many such kinds of payment processors like Liberty Reserve, Payza, etc got shut down.
As far as I know, Liberty Reserve started in 2006 and Payza (formerly known as Alertpay) started in the year 2004, so both of them were pretty old payment processors. They conducted operations without any problem during the mid 2000s until they were shut down by the authorities for money laundering and fraud. I remember receiving my $2 from a forum that used to pay via Liberty Reserve. Gosh! Those days were awesome and I shall never forget those days.
Anyways, I always fear when it comes to depositing money in online payment processors. There is ALWAYS a risk.