Just in case someone is interested or encounters a similar problem:
Solved by giving the GP prior the right shape and removing the transpose.
- I am not sure yet, whether the logic is correct, which I am currently verifying, but the code runs and debugging is possible.