A couple of suggestions:
Always take off with a freshly formatted SD card (or at least one that doesn't have a ton of data on it).
Turn off Obstacle Avoidance (or at least make sure the optics are properly cleaned). This is likely what is causing the flight to exit.
Inspect the 'DJI Diagnostics' column of the CSV log files to see what the cause of the programmed flight mode exit is.
Use 4.1.10 which is actually the latest version as of this post.
Just because a card of from a reputable retailer (is B&H on one of those?) doesn't mean the cards are good for use with DJI cameras. Benchmark benchmark benchmark. Test the cards in DJI Go using the intervalometer set for 2 second intervals. Start it and let it go for 1000 seconds exactly. Check how many files there are. If there is less than 500 the card is the problem.