As @P. Quinton shows above, (1) is not provable in intuitionistic logic, since $\neg\neg(p\wedge q)\to (\neg\neg p\wedge q)\vee (p\wedge\neg\neg q) = \top$ is not an identity in the 3-element Heyting algebra.
Unfortunately, a similar counterexample to equation (2) requires a much larger, 10-element Heyting algebra (Kripke semantics fares somewhat better, as @Bumble's excellent answer shows; proof-theoretic arguments are easier still).
So let us construct an explicit counterexample to (2) as a Heyting algebra.
Consider the set of numbers $S = \{1,2,3,4,6,9,12,18,36,72\}$. This set forms a Heyting algebra with
- Conjunction $\wedge$ given by greatest common divisors,
- Disjunction $\vee$ given by least common multiples,
- Top element $\top = 72$, and
- Bottom element $\bot = 1$.
As usual, we can calculate the Heyting implication $\Rightarrow$ using the formula
$$ y \Rightarrow z = \bigvee \left\{x \in S \mid (x \wedge y) \vee z = z \right\}. $$
This means that $x \wedge y$ divides $z$. For convenience I provide a full implication table below, but we only really need to calculate the negation table (first column) and two more implications to show that equation (2) fails in this algebra.
=> | 1, 2, 3, 4, 6, 9,12,18,36,72
----+------------------------------
1 |72,72,72,72,72,72,72,72,72,72
2 | 9,72, 9,72,72, 9,72,72,72,72
3 | 4, 4,72, 4,72,72,72,72,72,72
4 | 9,18, 9,72,18, 9,72,18,72,72
6 | 1, 4, 9, 4,72, 9,72,72,72,72
9 | 4, 4,12, 4,12,72,12,72,72,72
12 | 1, 2, 9, 4,18, 9,72,18,72,72
18 | 1, 4, 3, 4,12, 9,12,72,72,72
36 | 1, 2, 3, 4, 6, 9,12,18,72,72
72 | 1, 2, 3, 4, 6, 9,12,18,36,72
Now, let us show that equation (2) fails in this algebra, i.e. that we can choose $p,q \in S$ so that
$$\neg\neg(p\vee q)\Rightarrow ((\neg p\Rightarrow q)\vee (\neg q\Rightarrow p)) \neq 72.$$
Set $p = 2$ and $q = 3$. Then $p \vee q = 6$, so $\neg\neg (p \vee q) = \neg\neg 6 = \neg 1 = 72$. Since $72$ is the top element, this reduces the left-hand side of equation (2) to $((\neg 2\Rightarrow 3)\vee (\neg 3\Rightarrow 2))$.
We now compute $\neg 2\Rightarrow 3$ as $\neg 2\Rightarrow 3 = 9 \Rightarrow 3 = 12$ and $\neg 3\Rightarrow 2$ as $\neg 3 \Rightarrow 2 = 4 \Rightarrow 2 = 18$. But the least common multiple of $12$ and $18$ is $12 \vee 18 = 36 \neq 72$.
This shows that $S$ does not satisfy the equational form of (2), and therefore (2) does not have a proof in intuitionistic logic.