Hi Dishant,
I am a CA final student too and this was my third attempt. I lost by 9 marks, which is honestly very pissing off. I am immensely frustrated too. But please do not consider any thoughts of quitting. If you quit, you will only be pursued as a person who quit and nothing more. It will change the way you even think of yourself. Do not take such drastic steps. Take time to calm yourself down and go over your plan once more. Make sure you have the study plan charted out and stick to it.
Most importantly stop losing confidence in yourself. If you can gather up all the courage and belief you can certainly overcome obstacles. Needless to say, luck should favour you too. So buckle up and start believing in yourself :) Good luck!