This was a bug in the slack sdk that was fixed in v.3.20.1. Mind you that unlike chat_postMessage(), when calling files_upload_v2() you have to use the channel ID, not the channel name, and it isn't documented in the sdk 🤦♂️
chat_postMessage()
files_upload_v2()