if you're not currently in work then it might be helpful to build up more gradually? as in perhaps start with some voluntary work as that tends to be more relaxed and if you are a little unreliable due to your mental health they will be more patient about it than a paid position, then have a go at part time work and work your way up to full time
as far as this position goes you are in the best position to understand how your mental health will react to it, I would generally advise not giving up on things because of your mental health but equally feeling you have failed at either getting the job or keeping the job may only make you feel worse and if that is likely to happen it might be better to take things more easy