It does look like the LNK6777K is faulty. I would expect the internal 5.75 volt regulator to initially supply power to the BP pin. Another remote possibility is the capacitor C5 on figure 11 on the data sheet has failed short circuit. The waveforms with respect to earth ( Which is almost the same potential as mains neutral.) are meaningless.
Les.
Les.