WordPress login redirect loop

Solution: 

The solution was that the ID field of the table wp_usermeta was somehow not set to autoincrement resulting in a corrupted database after the update to wordpress 5.6. Assigning ids to the NULL fields and setting the field to autoincrement resolved the issue.