Riot's code list associates VAL 5 with an account logged in elsewhere. It is not the normal hardware-ban code. Start by closing other game and client sessions, signing out of unnecessary sessions and restarting the client on the device you want to use.
If the other login is unfamiliar
Change your Riot password, secure the linked email and enable additional login verification. Preserve unfamiliar login notices. Use official recovery if you have lost access.
Do not confuse error codes
VAL 61 concerns an account ban, while VAN 152 concerns hardware. Riot also warns that some displayed codes may be incorrect. If session cleanup does not help, send the screenshot, time and requested logs to support.
Hardware tools are not a session fix
A spoofer does not close another login or protect a compromised password. Resolve the account issue first instead of reinstalling Windows or changing identifiers without a diagnosis.
FEMIDA