Just curious:
Why did you install KiCad V5?
A few months ago KiCad V6 was released, and that has about 3 years of development in it with many new and improved features.
Apart from that, you most likely have a problem with the sym-lib-table file, and I just answered the same question about 10 minutes ago in: