Given that the OP:
gave no description of the incident
later confused and evasive replies to questions
that he launched very close to a tree
and within 7 seconds ended up in a tree without seeing the incident
I believe that the drone was flown...
Not till you find out what causes it.
The recorded data from a flight where this happened might help understand what's going on.
There are a couple of options ...
1. Go to DJI Flight Log Viewer | Phantom Help
Follow the instructions there to...
This behavior really sounds like something is interfering with the VPS sensor, making the drone constantly believing that something is closer than 0,5m below it... & by that tries to ascend away from it.
The constant descent following a longer...