Change the given paragraph in a more formal mannerto be more formal:
It sounds like she is insecure, which is probably why she got upset when you talked to her boyfriend.
If she got upset when you spoke to her boyfriend, then she's probably insecure.