How could I prevent hyperemesis gravidarum from happening again in my next pregnancy coz I had to lose my first baby due to difficulty of symptoms?

Not preventable. Unfortunately, you have no control over whether your get it and how severe it may be in a future pregnancy. If necessary, home care is usually possible with iv's and anti-emetic pumps until you get through the first trimester.