If a previous owner locked the device using "Find Device", you cannot normally bypass it. Use – this patches the account.db file in the data/system directory.
Download the Redmi Note 8 AIO tool from a reputable source and install it on your computer. redmi note 8 aio tool unlock bootloaderremove