Triac misfires because of noise from inductive loads
You need a snubber circuit to avoid these false turning on.

A second option (easier) is use a less sensitive triac. They called them "snuberless" triacs, actually.
I had the same issue and changed from BTA600 to BTA600BW, and everything worked fine!