Bro you need to work on lot of things.
Your knees started flexing first because of which the load is shifted forward , make sure you break your hips and knees together while coming down, this will give you better control over the bar.
keep you butt tight at the bottom which help you to keep control over your knees by not letting it go forward.
Go slow on eccentric .
Work on flexibility and on your core muscles.