I was wondering how $p$-values change with sample size or is their any relation between the two. To my knowledge, a $p$-value denotes the probability of finding observed or more extreme results than the null hypothesis claims (typically no difference). Based on the following example, let your null hypothesis be that there exists no difference in the amount of heads and tails you flip on a fair coin, that is you flip the same exact amount and your alternative be that a difference does exist. You flip a fair coin $n = 10$ times and get $7$ heads and $3$ tails, which suggests a relatively low $p$-value. But as you flip this coin more times (say $n = 100$) and now get $45$ heads and $55$ tails, your $p$-value increases - which results in you being more likely to fail to reject the null over the alternative hypothesis.
Thus, does increasing sample size, increase $p$-values in general?
In general, increasing the sample size changes the p-value (not necessarily increasing it). There is a lot to discuss as to why it is so and also why ''p-hacking'' is a thing, but there is a youtube video where it is explained in simple terms:
https://www.youtube.com/watch?v=42QuXLucH3Q