To handle the charging malfunction please try to use the given resolutions:
1. Use realme original charging cable and USB adapter.
2. Check your charging cable and USB adapter for signs of damage and make sure firm connections. Use another charging cable and USB adapter and try again.
3. Check the charging temperature. Charging at temperatures above 45 °C will degrade battery performance, resulting in slower charging and thus longer charging times.
4. Close background apps and avoid using your phone while charging.
Further, in case the problem persists kindly let us know also, you can check more troubleshooting at https://www.realme.com/in/support/troubleshooting