I can’t clearly see how the through-hole triacs are soldered onto the SMD pads, but I suspect that’s the source of the problem. You should carefully check the pins of your through-hole MAC97:
and the pins of the BT1308W SMD triac:
and make sure that you are soldering corresponding pins. As is I feel maybe some pins are swapped causing the problem.