Always showing cookies error for a first time visitor trying to login

Solution:

Check the issue by enabling the debugging in WordPress

https://wordpress.org/support/article/debugging-in-wordpress/