Could have been much worse, glad you weren't hurt badly. My grandson did almost the exact same thing on his quad. He hit a piece of split firewood in his own backyard. He was going at a pretty fast when it happened. He was thrown from the quad, which was a good thing. The quad flipped end to end three or four times and had big time damage. He landed in his dads freshly tilled garden which softened his contact with the ground. He cracked three ribs and dislocated a shoulder.
You are so correct about not getting complacent. It will bite you when you least expect it.