I post the question and answer in case it could help (strangely, I did not find it here).
problem: a folder was taking a lot of places, but since it was corrupted (copied from a failing hard drive), it wasn't visible (it wasn't just hidden). There was a discrepancy between the total space, the used space, and the free space: the total space was 500gb, the used space was 200, and the free space was 200 (the corrupted folder was 100gb).