The formula to calculate CSI looks in a simplified form like this:
CSI = pH + f(CH) + f(CA) + f(T) - f(TDS)
where "f(...)" means "function of ...". We don't really need to know how these "functions" actually look like, we can just let PoolMath do the work, but it helps to at least understand this general structure of the CSI formula.
Carbonate Alkalinity (CA) is not a parameter that is being directly measured, it has to be calculated from parameters accessible to pool test kits, therefore the CA-part of the formula gets re-parametrised as
f(CA) = f(TA, CYA, Bor, pH).
So, pH affects CSI in two ways. First, there is a direct influence via the first term in the formula, i.e. increase pH by e.g. 0.1, and CSI will increase by 0.1. But there is also an indirect influence via the Carbonate Alkalinity. Usually, esp. without Borates in the water, this indirect pH influence on CSI is much smaller than the direct influence, and CSI just keeps increasing with rising pH. But with rising pH, more and more of the TA will actually be made up from CYA-Alkalinity and Borates-Alkalinity. At typical pool-pH, the CYA-Alkalinity has only a weak dependency from pH, but the Borates-Alkalinity is strongly pH-dependent. Without Borates in the water, you will never see this "negative" influence of pH on CSI, but with Borates you can.
Some examples based on your numbers (calculated with chem geek's PoolEquations spreadsheet):
TA=50, CYA=60, Bor=0, pH=7.8 --> CA=28.0, CYA-Alk=21.9, Bor-Alk=0
TA=50, CYA=60, Bor=0, pH=8.0 --> CA=27.4, CYA-Alk=22.4, Bor-Alk=0
TA=50, CYA=60, Bor=0, pH=8.2 --> CA=26.8, CYA-Alk=22.8, Bor-Alk=0
TA=50, CYA=60, Bor=0, pH=8.4 --> CA=26.3, CYA-Alk=23.1, Bor-Alk=0
TA=50, CYA=60, Bor=30, pH=7.8 --> CA=21.8, CYA-Alk=21.8, Bor-Alk=6.2
TA=50, CYA=60, Bor=30, pH=8.0 --> CA=17.9, CYA-Alk=22.4, Bor-Alk=9.5
TA=50, CYA=60, Bor=30, pH=8.2 --> CA=12.4, CYA-Alk=22.8, Bor-Alk=14.5
TA=50, CYA=60, Bor=30, pH=8.4 --> CA= 4.8, CYA-Alk=23.1, Bor-Alk=21.6
You can see that with without Borates in the water, CA remains pretty stable. But with 30ppm Borates, Borates-Alkalinity starts to rise and Carbonate Alkalinity starts to crash at higher pH (which causes the drop in CSI that you noticed in PoolMath).
But you should actually never see this happen in reality, because with these water parameters, the CO2 dissolved in your pool water is in equilibrium with the atmospheric CO2 at a pH slightly above 7.8, so it shouldn't rise above about 7.8 by outgassing. pH might temporarily get higher, e.g. when adding a lot of bleach to get to SLAM-level (which will get down again when the chlorination cycle is completed and chlorine back to normal), but this will also temporarily increase TA (remember, the only TA-neutral process to increase pH is by aeration) which will prevent CA from crashing.