It's interesting to consider these cause and effects, but I tend to doubt that over-hunting/extintion of megafauna led to farming and agriculture.
It's understandable that ancient hunters might have focused on the larger animals, some of which may also have been less dangerous to hunt, but other smaller animals like deer, bison/cattle, pigs, horses were also common at the time, and even today hunter-gatherer lifestyle seems common among primitive tribes, and agriculture/farming (e.g. Maasai - cattle) less so.
There are other theories for the neolithic revolution and switch from hunter-gatherer to farming lifestyle, including things like population density (partly by cultural choice), and post-ice age climate change enabling farming.
The most reasonable to me is that megafauna come and wreck your farms, so you have to hunt them to extinction before farming is viable. Humans can stop a horse from eating their crops, but stopping an elephant or mammoth is not easy at all, and we see that humans hunted those to extinction right before they started agriculture.
There used to be elephants and mammoths all over the world, but almost all places where humans developed agriculture they had already killed all of them.
All the farming for millenia on the Indian subcontinent and southeast Asia in general seems to disagree with that. The Indus Valley civilization certainly had elephants around.
And African elephants form enormous herds, there used to be herds of hundreds of elephants roaming around, no way stone age level societies can defend against those all you can do is try to avoid them.
It is really hard to kill an elephant, you need a lot of people to do it or big traps. You can lookup videos of people doing that, you have like 100 people standing around throwing spears at it as it slowly bleeds to death and that is when its alone. If its a herd you can't even do that.
So when farming requires you to have a big hunting party constantly ready to take down an elephant, why not just live off elephant meat? The farm doesn't add any value and is very difficult to start.
It's understandable that ancient hunters might have focused on the larger animals, some of which may also have been less dangerous to hunt, but other smaller animals like deer, bison/cattle, pigs, horses were also common at the time, and even today hunter-gatherer lifestyle seems common among primitive tribes, and agriculture/farming (e.g. Maasai - cattle) less so.
There are other theories for the neolithic revolution and switch from hunter-gatherer to farming lifestyle, including things like population density (partly by cultural choice), and post-ice age climate change enabling farming.