Accel error

I have encountered a problem regarding the orientation of the drone. I have done proper accel calibration, but my flight controller(pixhawk 4) accepts about 25 degree as a stable orientation. Whenever I try to take off, it goes to 25 degree slowly and due to that I cant take it off. Any solution please.

How is your autopilot mounted on the drone (can you maybe share a picture)? Could you also attach a log file?