My phone keeps on hanging every time.
you can get the flash file from hikari calyx. But in nokia 2.1 with locked bootloader, you cant flash these. Unless you try extreme methods like BOX flashing (and there are paid service for this). And for the Android 10 hang problem, you should tweak EMM and from developer menu "Don't keep activities". But even after all that it won't go away.
It looks like you're new here. If you want to get involved, click one of these buttons!