The offence under section 376 IPC is "Whoever, except in the cases provided for in sub-section (2), commits rape, shall be punished with rigorous imprisonment of either description for a term which shall not be less than seven years, but which may extend to imprisonment for life, and shall also be liable to fine.
The offence do not come under the list of compoundable offence.
Section 5 and 6 is an aggravated penetrative sexual assault as defined in section 5(i) of the protection of children from sexual offences act, 2012 and so liable for punishment under sections 6 of the said act.
The charges or the offences under the above law are not compoundable hence you canot withdraw the complaint once a FIR is registered.
If they apply for quash then you may give an affidavit stating that it was yor mistake hence the charges are not pressed, however it is the discretion of the high court to quash the charge sheet or not owing to the gravity of the offence.
If this is not possible hen yo may have to turn hostile to the witness deposition to save the accused.