Cloudflare is randomly cleaning some cached files, ignoring edge cache ttl

Some static files and dynamic, php pages, etc.

is very random, i cant even tell why is getting cleaned, is not based on file size or file type, is very random

They are cleared based on usage usually and availability of storage in each node. Cloudflare can’t guarantee that files will remain until the Edge Cache TT expires.