Hello,
Running out of memory is not surprising, especially with the bilinear form, if:
1) your mesh is big
2) you're working with higher-order schemes
3) your machine doesn't have much RAM / virtual memory
We might be able to tell more if you send us what that strange error is.
Regards,
Miklos