as salam alaikum
in the mentioned case, you should go back in the standing position (qiyam) and continue to follow the Imam.
With prayers for your success.
Shaykh Abbas Di Palma holds a BA and an MA degree in Islamic Studies, and certifications from the Language Institute of Damascus University. He has also studied traditional Islamic sciences in London, Damascus and Qom and taught for different institutions in Italy and UK.