Using a firmware from a different region (China vs Global) or mismatching preloader files is the #1 cause of instant overheating after flashing. The wrong preloader sends incorrect voltage requests to the PMIC.
Do not flash userdata if you want to keep internal storage. sp flash tool for xiaomi mtk mt6765 mt6785 hot