Welcome to the forum. Unfortunately never really familiar with the phone or rooting for this phone. I would recommend checking the XDA developers forum for any mods..
Assalom-o-Alaikum! How to Root and Flash TWRP on Samsung Galaxy A51 One UI 2.5 Android 10 CTJ1 Build number- Android security patch level: 1 October 2020. It may be work for SM-A515F, SM-A515F/DSN, SM-A515F/DS, SM-A515F/DST, SM-A515F/DSM...