Too many files open (4066)

my server getting this issue everyday and i can’t find which file cause the issue also when its happen i need to restart my server so the new players can join
could someone spamming with layer 7 attack or something at cache\files\vrp\resouece.rpf
image

any help am getting this issue everyday