I think you should first try rebooting into the bootloader/fastboot mode and check if your device is recognized by your computer using the command 'fastboot devices'. If it's recognized, you can try flashing a stock ROM or LineageOS using the appropriate commands.
If the partition table issue persists, you may need to use tools like fastbootd or QFIL to rewrite the partition table, but this process can be complex and may require advanced technical knowledge.