I think you're making this task more difficult than it has to be. Let's look at the pyramid from a side point of view:
As you can see
Notice that the angles VAC and VAM are equal. This doesn't mean that , which in fact is a false statement (oh, btw ).
Angles have nothing to do with the lengths of sides, it's a method of describing the difference in direction between two lines, regardless of the lengths.
I'm not sure if I can explain this in a great way, but I'll try.
We need to see the difference between what an angle is and what a triangle is.
Therefore, I will strip my previous images from the sides h and VC (also the point C), leaving us with only two lines with an angle between them:
In this picture we have two sides (VA and AM), and one angle(VAM). Let's see what happens if we extend the side AM a bit:
In this picture the side AM has been extended. As we can see, the angle VAM has not been affected by this change of length in AM.
Let's now examine what happens if we have a triangle. I'll create a triangle out of my first example by adding the side VM:
Surprisingly enough, the angle VAM remains the same.
Let's now take the triangle VAM and extend the side AM to see what happens:
Let's see what has changed here. The length of the side AM has changed. The length of the side VM has changed. Even the area has changed. The angle VAM however, still remains the same. It seems like the angle VAM doesn't depend on the length of the side AM.
Let's merge the triangles and name point M in the second triangle C, and call the distance of VM h:
In this triangle we can see that the angle VAM is equal to the angle VAC (remember that C is the point M in the second triangle). Why is that? Well, it depends on the fact that the side AM has the same direction as the side AC, despite being of a different length, and an angle measures the difference of the direction of two lines, not the difference of lengths or anything else for that matter.
I hope that this has cleared a few things up, and has helped you understand your problem a little better.