Any DJI Spark owner understands that Drones are only as good as their connections to (1) your controller/phone and (2) GPS. I came across a very useful YouTube video giving you 5 ways to prevent your drone from flying away on its own.
The only thing I would add is this little tip: right after you launch your drone, have it hover over its take-off spot (or home) at about 33-34ft for roughly 15 seconds. This gives the drone and its GPS functions an opportunity to calibrate home location and learn the environment.
Remember to always fly responsibly so that you don’t (1) hurt anyone and (2) ruin the hobby for everyone else by giving lawmakers an excuse to regulate drones even more than they already are regulated.