Most likely this will help:
Settings > Apps > Media Storage* > Storage > Clear Data
Wait a while until Media Storage has re-built itself (it’s some kind of table of contents of your storage). Eventually, reconnect the phone via USB and try if the folders are complete now.
*to access this app, click on the three ••• at the top right to show system apps