Actually the biggest problem with trading addiction is not the losses, but the attempt to recover quickly after a loss. If one trade goes badly it's easy to take on more leverage on the next trade, and from there it can become like gambling, So it's more important to decide how much you can lose before trading than how much you can profit. Like if you trade with a small fixed budget, even a few bad trades won't put a strain on your entire financial situation. And if trading starts to affect your sleep or peace of mind, I think it's wiser to stay away from it altogether for a while.
Yes, you are right, trading addiction is basically created in this way, like when we lose in the first trade, we spend double money in the next trade and try to recover the previous loss, it must be called gambling, because if someone has played crash and casino, then you must know, like first place 1$ bet and if there is a loss, then most of the gamblers try to recover the previous loss by placing 2$ bet, so those who follow these rules in trading. It is considered gambling.
If you try to recover losses quickly in trading, it is likely to lead to a wrong trade and result in more losses. So I think those who trade with proper market analysis and a fixed, affordable budget can benefit a lot from trading in the long term. Trading should never be done full-time; it can create trading addiction, and late-night trading is harmful to sleep. So I never trade when I have sleep problems.