IMO it's a test. She's feeling uncomfortable and wants to see if you'll crack.

Stay cool, calm and collect. You are showing her a new side of yourself and it's confusing her, which is good.

If you become a great guy, it makes it harder for her to leave. She wants to feel sure of herself about her decision to leave.

Keep doing what you're doing. You will face more tests, prepare yourself for them.