Yeah, I did solved it but hear me out:
I solved it by entering Learn Press settings > Permalinks and saving them again.
It worked fine but yesterday I had to save the permalinks again because it wasn’t working.
Not only the logout, entering to a lesson would give me a 404 error. After saving the LP permalinks, it works as it should.