In order for you to apply for ILR on the basis of long residency, you will need to prove that your entire stay as the family member of an EEA citizen was compliant with the EEA Regulations.
In order to do that, your EEA spouse needed to have exercised treaty rights for that entire duration from 2014 till date (though, as you had a PSW visa till December 2015, you could argue that the treaty rights only need to be counted from then on).
Regulation 4(2) of the EEA Regulations requires that for a student to be exercising treaty rights, s/he must have Comprehensive Sickness Insurance for themselves
and those family members who are dependent on them for their right to reside. Your working is immaterial (unless you have CSI from a non-NHS health policy at work).
Given that EEA Regulations are meant to be read literally and have no provision for discretion, I would say that your EEA spouse did not exercise treaty rights if her CSI policy did not cover you from December 2015 till date.
If your EEA spouse did not exercise treaty rights or there was a break in her exercising treaty rights, you are not,
prima facie, eligible to use that period towards either ILR or PR.
I am not a lawyer or immigration advisor. My statements/comments do not constitute legal advice. E&OE. Please do not PM me for advice.