I tried to make a post with a lot of my code, but cloud flare blocked me from being able to post it.
The issue I noticed is that sometimes my captures are 1 sample short of what they are supposed to be. My only thought is that the float that is returned from ps5000aGetTimebase2 isn't always correct for timeIntervalNanoseconds. I've gone ahead and set my timeIntervalNanoseconds to be 16 since my sampling rate is static. I can email code to someone if they are interested in trying to recreate it.
If I am able to retest my equipment in the next few days, I will let you know if setting timeIntervalNanoseconds to be 16 fixes my issue.