According to the sources, it is generally safe to eat moldy cheese, but it depends on the type of cheese and the type of mold. Most molds are not harmful to eat, but they can negatively impact the flavor and texture of the cheese they are growing on. However, some molds can produce harmful bacteria, such as listeria, brucella, salmonella, and E. coli, which can grow along with the mold. Soft cheeses like cottage cheese, cream cheese, ricotta, or chèvre with mold should be discarded, as the mold can send threads throughout the cheese, contaminating more than what is visible. On the other hand, hard and semisoft cheeses like cheddar, colby, Parmesan, and Swiss can be salvaged by cutting away the moldy part and eating the rest of the cheese. It is recommended to cut off at least 1 inch (2.5 centimeters) around and below the moldy spot, and to keep the knife out of the mold to avoid contaminating other parts of the cheese.
Regarding mozzarella cheese, it is considered a fresh cheese with a high moisture content, and it is recommended to discard it if you see visible mold. If you accidentally eat moldy mozzarella cheese, it is unlikely to make you sick, according to a Reddit post. However, it is important to note that some molds can cause allergic reactions, respiratory problems, and even produce poisonous substances called mycotoxins that can make you sick and even kill you. Therefore, it is best to avoid eating moldy cheese if possible, and to discard it if you are not sure what type of mold it is or what to do with it.