The “American Pie” songwriter will avoid jail time if he avoids contact with his soon-to-be ex who filed for divorce in March citing a history of abuse