Any update or alternative solutions you found? I have a similar issue, want to upload a file that will be present inside a multi part form and want it to be true streaming, but getting same errors as written by you.
What seems to be the only solution is implementing the data gen by scratch, (done by chatgpt and it works) where we add each form data one by one and yield with boundaries.