The general (unofficial) rule is that you should only return to the UK after spending the same amount of time outside of the UK as the time spent on your previous visit (which may be less than the granted leave to enter).
An existing leave to enter is not effected by a stay in the Republic of Ireland. (CTA rules: Exemptions from deemed leave on the basis of specific status).
It is up to the discretion of the Immigration Officer to grant a leave to enter.
Even if you do not overstay by a few days, any return before 6 months may be denied since it would look as if you are trying to stay for a prelonged period after just spending 6 months in the UK.
Returning after 7-8 months, the Immigration Officer may see the overstay of a few days but may choose to ignore it if they have the impression you are not trying to stay for a prelonged period.
The situation would change if you were found in the UK while overstaying.
That would have a serious effect on any future reentry.