Well, it's saying there is a duplicate key.. so maybe it tried to add the attributes twice at once? In which case, it's probably fine.
No, I've not heard of any database integrity checkers. Apart from normal MySQL ones like
https://mariadb.com/kb/en/mariadb/mysqlcheck/