There are two possibilities here.
1. The OP was, in fact, lane-splitting which is illegal in NY (and most other states). The OP admits he is the drive that initiated the lane splitting. The OP is at fault.
2 The OP was not lane-splitting but simply very close to the rear of the car ahead. In that case, he is guilty of following to close. Again it is his fault.
LawLearner, you are lucky you aren't dead. You broke a number of the primary rules of motorcycle safety. If your bike was damaged don't get it fixed and if you do take a rider safety course and don't ride again until you have learned how fracking stupid your act was.