Why is $\lozenge (p\to p)$ not valid in system $K$ of modal logic?
How could this formula be false in any accessibility relation or setting of values in worlds? Even if it was a dead end world, wouldn't the conditional be vacuously true since the antecedent would be false? And then that would make the possibility operator true? Someone please help me see the counterexample.
Consider the frame with a single world $w$ and no arrows (or if you prefer, empty accessibility relation). Then regardless of what $\varphi$ is, the sentence "$\Diamond\varphi$" will be false at $w$ since $w$ sees no worlds at all.
Your analysis of "$\Diamond(p\rightarrow p)$" I believe conflates it with "$(\Diamond p)\rightarrow (\Diamond p)$" (the latter sentence has a hypothesis, namely "$\Diamond p$," whereas the former isn't a conditional statement - it's a "modalization" of a conditional).
More generally, the situation is:
In a frame with no dead worlds (or, if we add "$\Diamond (p\vee\neg p)$" to $K$), then we do have $$[(\Diamond p)\rightarrow(\Diamond q)]\rightarrow \Diamond(p\rightarrow q)$$ true at every world. For if $\Diamond(p\rightarrow q)$ is false at $w$, then $p\wedge\neg q$ has to be false at every world $w$ sees. So $\Diamond q$ is false at $w$; but since $w$ sees some world, this means that $\Diamond p$ is true at $w$ and so $[(\Diamond p)\rightarrow (\Diamond q)]$ is false at $w$.
The converse fails even in very nice frames: e.g. suppose $w$ sees the worlds $a$ and $b$ (and only those worlds), $p$ is true in $a$ but false in $b$, and $q$ is false in both $a$ and $b$. Then $\Diamond (p\rightarrow q)$ is true at $w$ (via $b$) and $\Diamond p$ is true at $w$ (via $a$) but $\Diamond b$ is false at $w$ and so $(\Diamond p)\rightarrow(\Diamond q)$ is false at $w$.