Pulsar timing array constraints on spin-2 ULDM