When something gets out of hand, that means it is becoming a problem. For example, if you love TV so much that you watch eight hours a day, then your habit is getting out of hand. When something gets out of hand, you lose control of it. Here is an example:

Pizza again. This is getting out of hand. You need to eat something else.