You are in the ROI previously in the UK on a YMS visa and you want to enter the UK via a port in the Common Travel Area.
The answer provided by 'the other one' is great. +1 from me, thanks and a tip of the hat! I wanted to add that in this particular case we can turn to Border Force's Operations Manual and have a closer look. Here's the relevant scan...
I defaced the original by adding little red thingies that trace your situation through the flowchart. You will be able to see that it ends on the result "deemed to have 7 days code 3".
So they are saying that you get 7 days more or less automatically. After that you become an overstayer of the 'inadvertent' kind (that's a bad thing). Unless they think that you intended to overstay in which case you become an illegal entrant (that's a very bad thing). In your case they would go for the latter because you have a bf in the UK which helps to establish intent. That situation will be exacerbated because they are already upset about the number of Aussies who are abusing the YMS (like using the CTA loophole for example), so you can expect a difficult time if (and only if) you get caught.
Those outcomes only happen if you get caught inland at some event which requires your id, otherwise you're off the hook. The other downside is you may have to lie on future UK applications to prevent disclosure of illegal entry (that's a precarious position to be in).
That's a technical and 'legally precise' answer to your question. In practical terms and for everyday knowledge, you can use 'the other one's answer.
Your other question...
How long do I have to stay outside UK before I can come back on a
tourist or any other short category visa?
There is no mandatory cooling-off period between YMS and visitor, you can return the same day if you want. The big problem (and I mean BIG problem) is that you will have to explain to an Immigration Officer what it's all about. And that interview can be hazardous to your travelling plans.
NOTE: The "code 3" part is their internal shorthand that summarises the situation. The best practices on how to interpret this is to ignore it altogether.
NOTE: The ROI has their own counterpart to this flowchart and your situation there may be dubious depending upon how you entered. You should check that out as a matter of extreme urgency. You don't want to be caught out or matters will become immeasurably worse.
NOTE: Since your bf's status in the UK is apparently unstable, your interaction with an IO may attract scrutiny of his status of the hostile variety. The comment from CMaster about treading carefully is fully loaded, heed it.
NOTE: For others, the flowchart can be used for all non-EAA nationals coming to the UK through the ROI.
NOTE: the flowchart is not something the Border Force just dreamed up on a whim. It is a visual extract of the applicable portions of the Immigration Rules Part 1. It means everything on the chart exists with legislative authority handed down by Parliament.