I have made a paper on overleaf that can compile your file even you have errors . Once I finished it , I tried to upload the latex to arXiv but I got many errors. I also tried to upload a pdf, I got that error “ that file is generated in latex “ . Is any way to just a upload the PDF file generated by overleaf website ??
Yes, there are ways to just upload the pdf without the source, but you should not do that because your impression that Overleaf can compile your file even though you have errors is wrong.
Overleaf (and indeed TeX) cannot compile your document properly if it has errors, Overleaf just shows you some document which might or might not be a valid pdf file. After an error, TeX only tries to recover enough to syntax check more of the file, it does not try to produce sensible output.
You should definitely fix the errors instead of trying to distribute what you think might be an acceptable pdf. This is only in your own interests. For example people using other pdf viewer than you might not be able to open your paper - you don't want to prevent anybody from reading your paper just because they cannot open it, do you?
Never ignore error messages with the argument that the output seems to look fine - it probably does not.