I`m not a Doctor, but have been
through several bike accidents and have had more than my fair share of surgery.
Thinking about this logically.. the only reason you would
throw up (vomit) blood is that there is excess blood in your intestine?
That would mean you have internal bleeding into the stomach cavity from some where?
Which would point to a gastric ulcer or a rupture such as Hiatus Hernia.
An ulcer can be exerbated by extra stress (such as giving up smoking) or a stressfull lifestyle coupled with the above.
If you were prone to ulcers you may have increased the possibility of this by giving up smoking and started
vaping.
There might be more serious underlying conditions so please see your Doctor/GP or medic.
On a more positive note here is a little story:
I was out riding my m/cycle one evening with my girl on the back, we hit a hard corner and we both came off, just a slide and we continued to the party

A good time was had and we rode back but in the morning when I wanted a piss/wee/whizz (whatever you call it) i noticed I was pissing blood! Not good

So got on the bike and rode to the Hospital and got checked out.
I was in for two days while they scanned and scanned again and found nothing, all this time I was pissing blood and it was starting to clot! The lumps were getting hard to pass through my .... and it felt like I was passing ball bearings!!!
It eased off and I was sent home being asked to piss into a container and keep notes!
I did

" Big clots" "smaller clots" "some clots and the colour is better" "Yikes..that was a bugger" ....you get the picture.
In the end after three more days it passed and the verdict was.....
During the bike crash my handlebars twisted and dug into my stomach and simply bruised a kidney, this bled and filled my urine with blood, the blood clotted and was passed. I felt absolutely no illl effects apart from the worrying about the biggest impact for me was to try to piss without the pain of clots or blood red urine.
I could have been worse and I might have done some damage, but I didn`t........ but I did get it checked out!
You my friend get it checked out
It might be something about nothing but at least you will know, and be able to sleep because it`s obviously worrying you.
G`luck.