Step 1: Download LineageOS Image from link below.
Step 2: Extraxt the file to get file .img
Step 3: Reboot phone to TWRP Recovery
Step 4: Wipe > Advanced Wipe (Dalvik, Cache, Data) and swipe to wipe
Step 4: Select Install > Install Image
Step 5: Select the LineageOS IMG file and choose System Image, then swipe to flash image
Step 6: Wait until flashing is complete
Step 7: Flash GApps if you want (Skip this step if you don't want to flash GApps)
Step 8: Reboot System and enjoy it.
Link Download File:
LineageOS: https://tinyurl.com/4shwyh52
GApps (NikGApps): https://tinyurl.com/bde22xfy
TWRP: https://twrp.me/samsung/samsunggalaxya52s5G.html
VBMETA DISABLED: https://tinyurl.com/5n7fvvcu
Thanks:
@AndyYan for the LineageOS GSI
@BlackMesa123 for the TWRP
Step 2: Extraxt the file to get file .img
Step 3: Reboot phone to TWRP Recovery
Step 4: Wipe > Advanced Wipe (Dalvik, Cache, Data) and swipe to wipe
Step 4: Select Install > Install Image
Step 5: Select the LineageOS IMG file and choose System Image, then swipe to flash image
Step 6: Wait until flashing is complete
Step 7: Flash GApps if you want (Skip this step if you don't want to flash GApps)
Step 8: Reboot System and enjoy it.

Link Download File:
LineageOS: https://tinyurl.com/4shwyh52
GApps (NikGApps): https://tinyurl.com/bde22xfy
TWRP: https://twrp.me/samsung/samsunggalaxya52s5G.html
VBMETA DISABLED: https://tinyurl.com/5n7fvvcu
Thanks:
@AndyYan for the LineageOS GSI
@BlackMesa123 for the TWRP