Which one is more acceptable betweeen capability and ability in the following sentnece and why? ( also, I would appreciate it if you could mark any mistakes)

Even though he has capability ( ability) as a student, he is highly likely to fail to accomplish his tasks halfway through the task unless he is hardworking.