So, I agree with you both that I think the mixture is off at certain RPMs, especially high RPM. However, the bucking at idle is completely new.
I want to mention that my Z has the 260s cam, and I knew it was going to need a lot of tuning to get the original EFI to work right (adjusting the AFM flapper, timing, etc etc). Many people advised against it, but I believe with such a small cam most of it can be tuned out. However, I still think that something electrically or mechanically is amiss in my car, because cylinder number 5 now seems to have almost no change to idle or engine when at a little higher rpm. In addition, it is just running in general a lot worse than it used to before I started having these weird problems.
Here is a what gave me faith with the stock EFI and the 260s cam. https://www.zcar.com/threads/biggest-cam-for-stock-efi.292280/
"I ran the Deltacams 260 cam with stock efi and it ran great. I ran the cam for a few years then sold the car since I had to many z's. Yes, 110.00 plus shipping. Don't forget the thicker lashpads to make up for the regrind. 0.160" thickness from courtesy nissan for another 36.00.
this cam does require some tuning to the stock efi. Run more ignition timing, loosen up the afm flapper a few teeth, adjust the tps to the off idle position.
You can run stock ignition timing if you move the vacuum advance to a manifold vacuum source. This will add vacuum advance at idle, so it will make the engine idle with 30 degrees of timing (10 initial + 20 vacuum advance).
the cam has a very slight lope at idle. pulls hard to 6000 rpm. a nice improvement in my car.
A 260 cam should idle in the 16 to 17inhg range. Lower than expected vacuum is a sign of low ignition timing and improper air/fuel ratio. A Z efi computer doesn't measure vacuum like a modern efi system, The only thing in a Z efi system that measures vacuum is the fuel pressure regulator"
That being said, my vacuum is currently at around 15hg at 950rpm. So I either have a really bad AFR, vacuum leak, weird electrical issue, or it's that semi dead cylinder, or likely all of the above causing bad AFR. Thanks for mentioning the water temp sensor tweak, it is a great gadget. I made one many moons ago, and tried it to see if it would fix anything at high or low rpm following that comment. Didn't do much except bog the motor down with fuel, so I don't think the problem lies there.
I am going to be taking it to a shop this weekend where they can actually measure my AFR, smoke test it, do real electrical work etc using all the big boy tools I don't have. As well as tune the EFI for the cam. I will update this forum once they find the issue(s), so to keep everyone informed.
I would also like to mention if I get it running right with the 260s cam I will make a separate thread as a guide on how to tune the EFI for it, so members can use it as info in the future, knowing that putting a cam in the stock EFI is a highly debated topic. Thank you everyone for the help thus far! I genuinely would have zero headway when working on the Z without help from this forum:)