Company leaders and colleagues called me a fool for no reason, so I hid in my room and didn't come out! I only come out when no one is around.

Company leaders and colleagues cannot call you a fool for no reason. They're all crazy. It's almost impossible for them to take you out. Only your working ability is poor and your learning ability is slow. It is inevitable that you can't actively improve your ability in a company for a long time and be looked down upon by your colleagues. In this case, whether to resign or not has advantages and disadvantages. In the long run, it is better to change the environment.