You need to break it up into 10 to 20 GB files, don’t do a full terabyte, that’s insanity lol.
Take the bottom script and setup an if/else go through all of the JSON files and upload them one at a time until they are all uploaded.
It’ll automate this whole process and make your life easier after breaking up the JSON file into smaller chunks.