The main thing going wrong with your frontsquat is a lack of proper balance which could be caused by simply improper movement, flexibility issues, or both. Your balance is currently very much on your toes, causing the bar to be in front and heels coming off the floor.
Ideally a frontsquat should have your back angle as vertical as possible. Slowing down the movement and really focusing very hard on
feeling the weight in the middle of your feet should help, trying to counter as much as possible when you feel the balance shifting forward a little. Learn slow and try to feel what is happening. On the upward portion of the squat,
pushing through your heels helps a lot too to maintain a good back angle. Every muscle in your upper body that can help you go up, should go up. Upper back "up", shoulders "up", chest "up", chin "up". All of this will help the back angle.
You might also be limited in flexibility, for which you will need time and experience in order to improve. I suggest watching some general front squat flexibility/mobility videos on YouTube and figure out for yourself whether or not you think you need them.