I suspect it would be important that any funds never reached you, so you couldn't simply receive money then donate that amount. Playing a charity gig where the receipts go directly to the charity would likely be fine, streaming/Spotify revenue I don't know, acting in a movie might be out of the question if it's being professionally shot because the producer might have insurance or other requirements that only paid performers and crew can be on set, etc.
However the practical answer is ask. Some visas like the J1 allow this - even consulting, provided it meets a bunch of criteria and relevant people sign off. It's not a trivial process, but it's not outright forbidden.
However they keep flip flopping between me needing a B1 and me just using my ESTA for the training, and their communication hasn't been the most straight forward. Which visa do I need to get to enter the US for the training?
> attend short-term training (you may not be paid by any source in the United States with the exception of expenses incidental to your stay)
"source in the US" might be problematic if you're paid by the US company directly and not a UK arm. You'd have to take those days as unpaid, except for a per diem? If you're paid in pounds by a UK source, ought to be fine.
I would confidently say you do not need a C visa. That's for immediate transit (like you have to change airports or something, and you would use an ESTA anyway). A D visa is for people like airline crew who have to stay and have to work whilst there (like getting an aircraft ready for international departure from a US airport). If you needed that, your company ought to know.