It’s super easy to reproduce. Checkout a branch, Go to Settings > Export. Look at the downloaded JSON. It has undefined branch name. I believe same issue persist if you use public APIs to fetch it.
When you export tracking plan from a branch other than main the first property shows undefined branch.
{
"name": "Exported Tracking Plan: undefined",
...
}