The tips below will make sure you never produce that error, or at least try.
Make sure you, and not your web host, controls your domain name. If you let your host control your domain name, you may be stuck with that host if you don't want to change domains. Some unscrupulous hosts won't release the domain info if you leave on bad terms. If you control the domain, you can point it at another host's nameservers and start fresh.
To prepare yourself for the experience of using a free web host, get used to the idea that you will have a lot of downtime. Staying up all the time takes some specialized equipment that free hosts don't really have the budget for. As a result, your site may be down more than it is up.
If you're going to use a free web host, make sure that you know all of the restrictions about site content, as different hosts have different rules about what you can post, especially in the areas of music or video, as streaming those can take up bandwidth. If you know the rules, you won't be in for any surprises.
When selecting a web host, consider how much the host costs. Some hosts charge on a per-year basis while some may be month-to-month. Look for a host that costs an average of about $5 per month as this will most likely give you a great value for your money as opposed to a free hosting site that may not offer as many options.
With luck, this article should have taught you something about web hosting. You should let natural flows of activity go, but if you have a bad host, you will not have fast speeds.