I believe the meaning of "freak out" is broader than the meaning of "flip out." "Freak out" can be used more when losing composure over something that makes you angry, nervous, anxious, drives you crazy, or makes you excited. Whereas "flip out" only conveys losing composure over something that makes you angry. So you can use both only when you want to say you are extremely angry or upset.