Here is the item again:
You correctly realized that the period after Eric was wrong. Her boyfriend who had broken ... is an appositive. Wherever you attach an appositive—at the beginning, in the middle, or at the end of a sentence—you must use appropriate punctuation.
To fix the problem, you chose to do this:
You have correctly employed Punctuation Rule 9:
Main Clause + , + Appositive.