Elektron sequencers need to be told early to change patterns (unless just talking to one another). I don’t know how you send that message in Pyramid, but I’d sent it at least one “step” before the end of the bar you want to change after. also remember to send to the Elektron devices the PC on their auto midi channel.
here’s a whole thread on it (which hopefully is relevant, I only skimmed it):
also here’s a video of how to use Pyramid to sync and control DT, including program changes (although the dude kinda looks like a helicopter pilot with that headset haha!):